<template>
  <div class="no-data">
    <img src="../../assets/nodata.png" />
    <span>{{txt}}</span>
  </div>
</template>

<script>
export default {
  props:{
    txt:{
      type:String,
      default:"暂无数据"
    }
  }
}
</script>

<style lang="scss" scoped>
.no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  img {
    width: 120px;
  }
  span {
    color: #bbb;
    line-height: 40px;
  }
}
</style>